<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.plugin.plugin' );

/**
 * Mwc_plugin system plugin
 */
class plgSystemMwc_plugin extends JPlugin
{
	/**
	 * Constructor
	 *
	 * For php4 compatability we must not use the __constructor as a constructor for plugins
	 * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
	 * This causes problems with cross-referencing necessary for the observer design pattern.
	 *
	 * @access      protected
	 * @param       object  $subject The object to observe
	 * @param       array   $config  An array that holds the plugin configuration
	 * @since       1.0
	 */
	function plgSystemMwc_plugin( &$subject, $config )
	{
			parent::__construct( $subject, $config );
			
			// load plugin parameters
			$this->_MA_plugin = JPluginHelper::getPlugin( 'system', 'mwc_plugin' );
			$this->_MA_params = new JParameter( $this->_MA_plugin->params );
			
			//JPlugin::loadLanguage( 'plg_system_mwc_plugin', JPATH_ADMINISTRATOR );

			// Do some extra initialisation in this constructor if required
			global $mainframe;
			// return if current page is an administrator page
			if( $mainframe->isAdmin() ) { return; }
			//jimport('3rdparty.wts');
	}

	/**
	 * Do something onAfterInitialise 
	 */
	function onAfterInitialise()
	{
	}

	/**
	 * Do something onAfterRoute 
	 */
	function onAfterRoute()
	{
	}

	/**
	 * Do something onAfterDispatch 
	 */
	function onAfterDispatch()
	{
	}

	/**
	 * Do something onAfterRender 
	 */
	function onAfterRender()
	{
	}
}

?>